<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head> 
  <title>在线随机数生成器</title> 
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  <meta content="随机数,随机数发生器" name="Keywords" /> 
  <link rel="icon" type="text/css" href="https://orz.red/img/ico.png">

  <meta content="随机数在线生成，可设定唯一的、可重复的，随机实验的结果，用于统计学、密码学、抽奖、dota2roll、魔兽roll等场景，是数学的辅助工具。" name="Description" /> 
  <link rel="stylesheet" type="text/css" href="style.css" /> 
  <script language="JavaScript">
function uaredirect(f){try{if(document.getElementById("bdmark")!=null){return}var b=false;if(arguments[1]){var e=window.location.host;var a=window.location.href;if(isSubdomain(arguments[1],e)==1){f=f+"/#m/"+a;b=true}else{if(isSubdomain(arguments[1],e)==2){f=f+"/#m/"+a;b=true}else{f=a;b=false}}}else{b=true}if(b){var c=window.location.hash;if(!c.match("fromapp")){if((navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i))){location.replace(f)}}}}catch(d){}}function isSubdomain(c,d){this.getdomain=function(f){var e=f.indexOf("://");if(e>0){var h=f.substr(e+3)}else{var h=f}var g=/^www\./;if(g.test(h)){h=h.substr(4)}return h};if(c==d){return 1}else{var c=this.getdomain(c);var b=this.getdomain(d);if(c==b){return 1}else{c=c.replace(".","\\.");var a=new RegExp("\\."+c+"$");if(b.match(a)){return 2}else{return 0}}}});
</script> 
 </head> 
 <body> 
  <div class="wrap"> 
   <h1>在线随机数生成|随机数发生器</h1> 
   <p><cite>使用说明：</cite>在线生成随机数需要确定两个量：一、需要生成多少个随机数【即：个数】；二、随机数所在的范围【即：最小值和最大值】。把数据填入下表空格中，点击“生成”即可生成。<br />附：1.填入空格中的数必须是自然数；2.本工具可设置所生成的随机数是否可以重复。</p> 
   <div class="rand"> 
    <p>随机数个数：<input type="text" id="randomCount" value="10" /></p> 
    <p>随机数范围：<input type="text" id="randomMinimum" value="0" /> ~ <input type="text" id="randomMaximum" value="100" /></p> 
    <p>是否唯一：<span style="margin-left:14px"></span><select id="randomType"><option value="unique">唯一</option><option value="open">可重复</option></select></p> 
    <p></p>
    <center>
     <a href="javascript:void(0)" onclick="dashangToggle()"><input type="button" id="randomGenerate" value="点击生成" class="calc" /></a> 
     <a href="#" title="重置随机数"><input type="reset" name="button" value="重置" /></a>
    </center>
    <p></p> 
    <div id="randomNumbers" style="color: white;width:100%;line-height:40px;font-size: 28px;text-align:center;background-color: #005295;border-radius:10px; padding:20px;margin:0 auto;">
     结果显示在这里
    </div> 
   </div> 
  </div> 

  
  <script src="https://bnsol.gitee.io/jquery/jquery-1.7.1.js"></script> 
  <script type="text/javascript" src="rand.js"></script> 
 </body>
</html>